projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf24f89
)
(Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 5 Nov 2001 03:52:23 +0000
(
03:52
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 5 Nov 2001 03:52:23 +0000
(
03:52
+0000)
src/fns.c
patch
|
blob
|
history
diff --git
a/src/fns.c
b/src/fns.c
index 74208831ee2acbdc9d4f4595020e133e542f947b..880886071ded368d77448f6effd92b6eebab038f 100644
(file)
--- a/
src/fns.c
+++ b/
src/fns.c
@@
-4776,11
+4776,11
@@
usage: (make-hash-table &rest KEYWORD-ARGS) */)
Lisp_Object prop;
prop = Fget (test, Qhash_table_test);
- if (!CONSP (prop) ||
XFASTINT (Flength (prop)) < 2
)
+ if (!CONSP (prop) ||
!CONSP (XCDR (prop))
)
Fsignal (Qerror, list2 (build_string ("Invalid hash table test"),
test));
- user_test =
Fnth (make_number (0),
prop);
- user_hash =
Fnth (make_number (1), prop
);
+ user_test =
XCAR (
prop);
+ user_hash =
XCAR (XCDR (prop)
);
}
else
user_test = user_hash = Qnil;